package com.wellsantos.dgwt.home.client.view;

import com.google.gwt.user.client.ui.Widget;
import com.googlecode.dgwt.client.dijit.Container;
import com.googlecode.dgwt.client.dijit.form.ListBox;

public class FormWidgetsView extends BaseView {
    
    private Container mainPanel = new Container();
    private com.google.gwt.user.client.ui.ListBox gwtListBox = new com.google.gwt.user.client.ui.ListBox(true);
    private ListBox listBox = new ListBox();
    
    public FormWidgetsView(){
        for (int index=0; index<15; index++){
            gwtListBox.addItem("Text-"+index, "Value-"+index);
            listBox.addItem("Value-"+index, "Text-"+index);
        }
        mainPanel.add(gwtListBox);
        mainPanel.add(listBox);
    }

    @Override
    public String getTitle() {
        return "Form Widgets";
    }

    @Override
    public Widget getWidget() {
        return mainPanel;
    }

}
